﻿using System.Data;
using Ledict.ConditionExtract.DAL;
using Ledict.ConditionExtract.Model;

namespace Ledict.ConditionExtract.BLL
{
    public class WordBankKeyWordsBLL
    {
        private readonly WordBankKeyWordsDAL dal = new WordBankKeyWordsDAL();

        public bool Exists(SYS_WordBank_KeyWords Model)
        {
            return dal.Exists(Model);
        }

        /// <summary>
        ///     增加一条数据
        /// </summary>
        public bool Add(SYS_WordBank_KeyWords model)
        {
            return dal.Add(model);
        }

        /// <summary>
        ///     删除一条数据
        /// </summary>
        public bool Delete(string wbkId)
        {
            return dal.Delete(wbkId);
        }

        public bool Update(SYS_WordBank_KeyWords model)
        {
            return dal.Update(model);
        }


        /// <summary>
        ///     获得数据列表（要统计表述中的引用频次）
        /// </summary>
        public string GetList_WB_ID(string wbId)
        {
            return dal.GetList_WB_ID(wbId);
        }

        /// <summary>
        ///     获得数据列表
        /// </summary>
        public DataTable GetList_WB_IDAndWhere(string wbId, string whereTest)
        {
            return dal.GetList_WB_IDAndWhere(wbId, whereTest);
        }

        public DataTable GetList_WB_IDNoOrder(string wbId)
        {
            return dal.GetList_WB_IDNoOrder(wbId);
        }
    }
}